package com.tongguan.paypos.interfaces.impl;

import com.tongguan.paypos.interfaces.CashSuper;
import com.tongguan.paypos.utils.Arith;

/**
 * Created by Joylive on 2016/12/9 .
 */

public class CashRebate extends CashSuper {

    private double moneyRebate = 1d; //折扣率

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return Arith.mul(money,moneyRebate);
    }

}
